
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:10px;">
  <tr>
    <td width="950" valign="top"><table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top"><div id="halaman"><div class="jusul"><strong>Register</strong></div><p>&nbsp;</p><?php if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "daftarcoy") && ($_POST["full_name"] <> "") && ($_POST["nama_user"] <> "") && ($_POST["email"] <> "") && ($_POST["password"] <> "") && ($_POST["password"] == $_POST["passwordlg"]) && ($_POST['captcha'] == $_SESSION['captcha'])) {
?>
          Registrasi Berhasil, Cek Email Anda Untuk Aktifasi Akun
          <p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
          <?php 
} else {
      ?>    <form action="<?php
	echo curPageURL();  ?>" method="post" name="daftarcoy" id="daftarcoy">
            <table width="100%" align="left">
              <tr valign="baseline">
                <td nowrap="nowrap" align="left"><strong>Full name:</strong></td>
                <td><input type="text" name="full_name" value="<?php echo $_POST["full_name"] ?>" size="70" />
  <?php if ($_POST["MM_insert"] == "daftarcoy") { if ($_POST["full_name"] == "") { ?><br /><font color="#FF0000">*Wajib Di isi</font><?php } }?> </td>
                </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="left"><strong>Choose your username:</strong></td>
                <td><input type="text" name="nama_user" value="<?php echo $_POST["nama_user"] ?>" size="70" />
                  <?php if ($_POST["MM_insert"] == "daftarcoy") { if ($_POST["nama_user"] == "") { ?><br /><font color="#FF0000">*Wajib Di isi</font><?php } } ?></td>
                </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="left"><strong>Email:</strong></td>
                <td><input type="text" name="email" value="<?php echo $_POST["email"] ?>" size="70" />
                  <?php if ($_POST["MM_insert"] == "daftarcoy") { if ($_POST["email"] == "") { ?><br /><font color="#FF0000">*Wajib Di isi</font><?php } } ?></td>
                </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="left"><strong>Create a password:</strong></td>
                <td><input type="password" name="password" value="<?php echo $_POST["password"] ?>" size="70" />
                  <?php if ($_POST["MM_insert"] == "daftarcoy") { if ($_POST["password"] == "") { ?><br /><font color="#FF0000">*Wajib Di isi</font><?php } } ?>
                  </td>
                </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="left"><strong>Confirm your password:</strong></td>
                <td><input type="password" name="passwordlg" value="" size="70" />
                  <?php if ($_POST["MM_insert"] == "daftarcoy") { if ($_POST["passwordlg"] == "") { ?><br /><font color="#FF0000">*Wajib Di isi</font><?php } }?>
                  <?php if ($_POST["password"] <> $_POST["passwordlg"]) { ?><br /><font color="#FF0000">*These passwords don't match</font><?php } ?></td>
                </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">&nbsp;</td>
                <td><img src="<?php echo $base ?>gambar/gambar-capctha.jpg" style="margin-top:5px; border:#036 2px solid" /><br />
                  *Silahkan mengisi kode pengaman yang sesuai dengan gambar di atas.</td>
                </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">&nbsp;</td>
                <td><input name="captcha" type="text" maxlength="5" value="<?PHP echo $_POST['captcha'] ?>" /><?php if ($_POST["MM_insert"] == "daftarcoy") { if ($_POST["captcha"] == "") { ?><br /><font color="#FF0000">*Wajib Di isi</font><?php } 
				else if ($_POST['captcha'] <> $_SESSION['captcha']) { ?><br /><font color="#FF0000">*Captcha tidak sesuai <?php } }?></td>
                </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">&nbsp;</td>
                <td><input type="submit" value="Mendaftar" /> <br />
<br />
<?php echo $content = '<a href="https://www.facebook.com/dialog/oauth?client_id='.$config['App_ID'].'&redirect_uri='.$config['callback_url'].'&scope=email,user_likes,publish_stream"><img src="'.$base.'fblogin/images/login-button.png" alt="Sign in with Facebook"/></a>'; ?></td>
                </tr>
              </table>
            <input type="hidden" name="MM_insert" value="daftarcoy" />
            </form><?php } ?>
          <p>&nbsp;</p></div></td>
        </tr>
    </table></td>
  </tr>
</table>